/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.game.math.view.domain;

import javax.swing.JToggleButton;
import org.game.math.view.config.Configure;

/**
 *
 * @author nmduc
 */
class SignToggledModel extends JToggleButton.ToggleButtonModel {
  this.setSelected(Configure.getInstance().getTempProperties().getProperty(Configure.SIGN).toBoolean);

  override def setSelected(b:Boolean):Unit = {
    super.setSelected(b);
    Configure.getInstance().getTempProperties().setProperty(Configure.SIGN, isSelected().toString());
  }
}
